package com.ruoyi.web.domain;

import java.util.Date;
import java.util.List;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * oldDrug对象 old_drug
 *
 * @author drx
 * @date 2024-03-01
 */
@ApiModel("oldDrug")
public class OldDrug extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @Excel(name = "ID")
    @ApiModelProperty("主键")
    private Long id;

    /**
     * 名称
     */
    @Excel(name = "名称")
    @ApiModelProperty("名称")
    private String name;

    /**
     * 别名
     */
    @Excel(name = "别名")
    @ApiModelProperty("别名")
    private String alias;

    /**
     * 主图
     */
    @ApiModelProperty("主图")
    private String icon;

    /**
     * 简介
     */
    @Excel(name = "简介")
    @ApiModelProperty("简介")
    private String remark;

    /**
     * 是否启用
     */
    @ApiModelProperty("是否启用")
    private String state;

    /**
     * 厂家id
     */
    @Excel(name = "厂家", dictType = "drug_factory")
    @ApiModelProperty("厂家id")
    private Long manuId;

    /**
     * 有效期
     */
    @Excel(name = "有效期")
    @ApiModelProperty("有效期")
    private String periodOfValidity;

    /**
     * 准批文号
     */
    @ApiModelProperty("准批文号")
    private String quasiApprovalNo;

    /**
     * 剂型id
     */
    @Excel(name = "剂型", dictType = "jx_type")

    @ApiModelProperty("剂型id")
    private Long dosageId;

    /**
     * 是否处方药  0 否  1、是
     */
    @Excel(name = "是否处方药", dictType = "sys_yes_no")
    @ApiModelProperty("是否处方药  0 否  1、是")
    private Long isPrescription;

    /**
     * 排序
     */
    @Excel(name = "排序")
    @ApiModelProperty("排序")
    private Long sort;

    /**
     * 推荐
     */
    @ApiModelProperty("推荐")
    private Long recommend;

    /**
     * 商品视频
     */
    @ApiModelProperty("商品视频")
    private String videos;

    /**
     * 储存条件
     */
    @ApiModelProperty("储存条件")
    private String storagecondition;

    /**
     * 成分
     */
    @ApiModelProperty("成分")
    private String ingredient;

    /**
     * 性状
     */
    @ApiModelProperty("性状")
    private String xingzhuang;

    /**
     * 适用人群
     */
    @ApiModelProperty("适用人群")
    private String suitableforthecroud;

    /**
     * 用法用量
     */
    @ApiModelProperty("用法用量")
    private String usageanddosage;

    /**
     * 副作用
     */
    @ApiModelProperty("副作用")
    private String untoward;

    /**
     * 禁忌
     */
    @ApiModelProperty("禁忌")
    private String taboos;

    /**
     * 注意事项
     */
    @ApiModelProperty("注意事项")
    private String announcements;

    /**
     * 适应症
     */
    @ApiModelProperty("适应症")
    private String adaptationdisease;

    /**
     * 药物相互作用
     */
    @ApiModelProperty("药物相互作用")
    private String mutual;

    /**
     * 商品详情
     */
    @ApiModelProperty("商品详情")
    private String detail;

    /**
     * 浏览量
     */
    @ApiModelProperty("浏览量")
    private Long hits;

    /**
     * 创建人名称
     */
    @ApiModelProperty("创建人名称")
    private String createName;

    /**
     * 更新人名称
     */
    @Excel(name = "更新人名称")
    @ApiModelProperty("更新人名称")
    private String updateName;

    /**
     * 是否删除（0否；1是）
     */
    @ApiModelProperty("是否删除（0否；1是）")
    private String delFlag;


    /**
     * 旧药品规格信息
     */
    private List<OldDrugSpecification> oldDrugSpecificationList;

    /**
     * 药品疾病集合
     */
    private List<OldDrugDisease> diseaseList;

    private Date startTime;

    private Date endTime;

    private String pid;

    private String diseaseId;

    @Excel(name = "厂家名称")
    @ApiModelProperty("厂家名称")
    private String manuName;

    @Excel(name = "剂型名称")
    @ApiModelProperty("剂型名称")
    private String dosageName;

    @ApiModelProperty("温馨提示")
    private String warmPrompt;

    @ApiModelProperty("参考资料")
    private String referenceMaterial;

    @ApiModelProperty("信息来源")
    private String informationSources;

    public String getWarmPrompt() {
        return warmPrompt;
    }

    public void setWarmPrompt(String warmPrompt) {
        this.warmPrompt = warmPrompt;
    }

    public String getReferenceMaterial() {
        return referenceMaterial;
    }

    public void setReferenceMaterial(String referenceMaterial) {
        this.referenceMaterial = referenceMaterial;
    }

    public String getInformationSources() {
        return informationSources;
    }

    public void setInformationSources(String informationSources) {
        this.informationSources = informationSources;
    }

    public String getManuName() {
        return manuName;
    }

    public void setManuName(String manuName) {
        this.manuName = manuName;
    }

    public String getDosageName() {
        return dosageName;
    }

    public void setDosageName(String dosageName) {
        this.dosageName = dosageName;
    }

    public String getPid() {
        return pid;
    }

    public void setPid(String pid) {
        this.pid = pid;
    }

    public String getDiseaseId() {
        return diseaseId;
    }

    public void setDiseaseId(String diseaseId) {
        this.diseaseId = diseaseId;
    }

    public List<OldDrugDisease> getDiseaseList() {
        return diseaseList;
    }

    public void setDiseaseList(List<OldDrugDisease> diseaseList) {
        this.diseaseList = diseaseList;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setAlias(String alias) {
        this.alias = alias;
    }

    public String getAlias() {
        return alias;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public String getIcon() {
        return icon;
    }

    @Override
    public String getRemark() {
        return remark;
    }

    @Override
    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public void setManuId(Long manuId) {
        this.manuId = manuId;
    }

    public Long getManuId() {
        return manuId;
    }

    public void setPeriodOfValidity(String periodOfValidity) {
        this.periodOfValidity = periodOfValidity;
    }

    public String getPeriodOfValidity() {
        return periodOfValidity;
    }

    public void setQuasiApprovalNo(String quasiApprovalNo) {
        this.quasiApprovalNo = quasiApprovalNo;
    }

    public String getQuasiApprovalNo() {
        return quasiApprovalNo;
    }

    public void setDosageId(Long dosageId) {
        this.dosageId = dosageId;
    }

    public Long getDosageId() {
        return dosageId;
    }

    public void setIsPrescription(Long isPrescription) {
        this.isPrescription = isPrescription;
    }

    public Long getIsPrescription() {
        return isPrescription;
    }

    public void setSort(Long sort) {
        this.sort = sort;
    }

    public Long getSort() {
        return sort;
    }

    public void setRecommend(Long recommend) {
        this.recommend = recommend;
    }

    public Long getRecommend() {
        return recommend;
    }

    public void setVideos(String videos) {
        this.videos = videos;
    }

    public String getVideos() {
        return videos;
    }

    public void setStoragecondition(String storagecondition) {
        this.storagecondition = storagecondition;
    }

    public String getStoragecondition() {
        return storagecondition;
    }

    public void setIngredient(String ingredient) {
        this.ingredient = ingredient;
    }

    public String getIngredient() {
        return ingredient;
    }

    public String getXingzhuang() {
        return xingzhuang;
    }

    public void setXingzhuang(String xingzhuang) {
        this.xingzhuang = xingzhuang;
    }

    public void setSuitableforthecroud(String suitableforthecroud) {
        this.suitableforthecroud = suitableforthecroud;
    }

    public String getSuitableforthecroud() {
        return suitableforthecroud;
    }

    public void setUsageanddosage(String usageanddosage) {
        this.usageanddosage = usageanddosage;
    }

    public String getUsageanddosage() {
        return usageanddosage;
    }

    public void setUntoward(String untoward) {
        this.untoward = untoward;
    }

    public String getUntoward() {
        return untoward;
    }

    public void setTaboos(String taboos) {
        this.taboos = taboos;
    }

    public String getTaboos() {
        return taboos;
    }

    public void setAnnouncements(String announcements) {
        this.announcements = announcements;
    }

    public String getAnnouncements() {
        return announcements;
    }

    public void setAdaptationdisease(String adaptationdisease) {
        this.adaptationdisease = adaptationdisease;
    }

    public String getAdaptationdisease() {
        return adaptationdisease;
    }

    public void setMutual(String mutual) {
        this.mutual = mutual;
    }

    public String getMutual() {
        return mutual;
    }

    public void setDetail(String detail) {
        this.detail = detail;
    }

    public String getDetail() {
        return detail;
    }

    public void setHits(Long hits) {
        this.hits = hits;
    }

    public Long getHits() {
        return hits;
    }

    public void setCreateName(String createName) {
        this.createName = createName;
    }

    public String getCreateName() {
        return createName;
    }

    public void setUpdateName(String updateName) {
        this.updateName = updateName;
    }

    public String getUpdateName() {
        return updateName;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    public String getDelFlag() {
        return delFlag;
    }

    public List<OldDrugSpecification> getOldDrugSpecificationList() {
        return oldDrugSpecificationList;
    }

    public void setOldDrugSpecificationList(List<OldDrugSpecification> oldDrugSpecificationList) {
        this.oldDrugSpecificationList = oldDrugSpecificationList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("name", getName())
                .append("alias", getAlias())
                .append("icon", getIcon())
                .append("remark", getRemark())
                .append("state", getState())
                .append("manuId", getManuId())
                .append("periodOfValidity", getPeriodOfValidity())
                .append("quasiApprovalNo", getQuasiApprovalNo())
                .append("dosageId", getDosageId())
                .append("isPrescription", getIsPrescription())
                .append("sort", getSort())
                .append("recommend", getRecommend())
                .append("videos", getVideos())
                .append("storagecondition", getStoragecondition())
                .append("ingredient", getIngredient())
                .append("suitableforthecroud", getSuitableforthecroud())
                .append("usageanddosage", getUsageanddosage())
                .append("untoward", getUntoward())
                .append("taboos", getTaboos())
                .append("announcements", getAnnouncements())
                .append("adaptationdisease", getAdaptationdisease())
                .append("mutual", getMutual())
                .append("detail", getDetail())
                .append("hits", getHits())
                .append("createBy", getCreateBy())
                .append("createName", getCreateName())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateName", getUpdateName())
                .append("updateTime", getUpdateTime())
                .append("delFlag", getDelFlag())
                .append("oldDrugSpecificationList", getOldDrugSpecificationList())
                .toString();
    }
}
